package com.gx.custom.jobs;

import com.gx.utils.ThreadPoolUtils;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;


@Slf4j
public class JobProcessStart implements Job {

    @Override
    public void execute(JobExecutionContext arg0) throws JobExecutionException {
        log.error("测试Job开始");
//		ThreadPoolUtils.getExecutorService().execute(()->{
//
//		});
        String printTime = new SimpleDateFormat("yy-MM-dd HH-mm-ss").format(new Date());
        System.out.println("Job:" + printTime + ", prints: Hello Job-" + new Random().nextInt(100));
    }

}
